import request from '@/utils/request'

const prefixUrl = 'web/shoot-require/'

// 列表分页
export function list(params) {
  return request({
    url: prefixUrl + 'list',
    method: 'get',
    params
  })
}

// 保存至草稿箱
export function save(data) {
  return request({
    url: prefixUrl + 'save',
    method: 'post',
    data: data,
    content_type: 'json'
  })
}

// 删除
export function remove(params) {
  return request({
    url: prefixUrl + 'delete',
    method: 'delete',
    params
  })
}
// 修改拍照要求
export function modify_shoot_requirement(data) {
  return request({
    url: prefixUrl + 'modify-shoot-requirement',
    method: 'post',
    data,
    content_type: 'json'
  })
}

export function listAll(params) {
  return request({
    url: prefixUrl + 'list-all',
    method: 'get',
    params
  })
}
